package com.study.pojo;

import java.util.Date;

/**
 * 浏览历史表
 * @Author Miss kun
 * @Date 2020/10/8 19:49
 * @Version 1.0
 */
public class History {

    private Integer id;
    private Integer user_id;
    private Integer book_id;
    private Integer chapter_id;
    private Date date;

    public History(Integer user_id, Integer book_id, Integer chapter_id) {
        this.user_id = user_id;
        this.book_id = book_id;
        this.chapter_id = chapter_id;
    }

    public History() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public Integer getChapter_id() {
        return chapter_id;
    }

    public void setChapter_id(Integer chapter_id) {
        this.chapter_id = chapter_id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "History{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", book_id=" + book_id +
                ", chapter_id=" + chapter_id +
                ", date=" + date +
                '}';
    }
}
